<?php
namespace Swiftx\Bundle\WeChat\Interfaces\Controller\Company;
use Swiftx\Interfaces\Httpd\Request;
use Swiftx\Interfaces\Httpd\Response;

/**
 * 布局框架页面接口
 * @default-implement Swiftx\Bundle\WeChat\Controller\Company\Album singleton=true
 * @router-annotation Swiftx\Component\Router\Annotation\Method
 */
interface Album {

    /**
     * 显示所有相册
     * @param Request   $request
     * @param Response  $response
     * @router method   get
     * @return bool
     */
    public function showList(Request $request, Response $response):bool;

    /**
     * 创建新相册
     * @param Request   $request
     * @param Response  $response
     * @router method   post
     * @return bool
     */
    public function create(Request $request, Response $response):bool;

    /**
     * 显示相册图片
     * @param Request   $request
     * @param Response  $response
     * @router method   get
     * @return bool
     */
    public function showDetail(Request $request, Response $response):bool;

    /**
     * 图片上传
     * @param Request   $request
     * @param Response  $response
     * @router method   post
     * @return bool
     */
    public function upload(Request $request, Response $response):bool ;

}